<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::rule('oauth', 'index/oauth');
Route::rule('oauthBack', 'index/oauthBack');

Route::rule('create_order', 'index/createOrder');
Route::rule('order_notify', 'index/orderNotify');

Route::rule('search_order', 'index/orderQuery');

Route::rule('shop_detail', 'index/shopDetail');

Route::rule('index', 'activity/oauth');
Route::rule('oauthBack2', 'activity/oauthBack');


Route::group('', function () {
    //更新用户数据
    Route::rule('update_userinfo', 'User/updateUser');

})->middleware(\app\api\middleware\CheckToken::class);